﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base_leasesystem_settlement
{
    /// <summary>
    /// 分佣记录
    /// </summary>
    [Table("leasesystem_settlement")]
    public class leasesystem_settlement
    {

        /// <summary>
        /// 主键id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 代发批次ID
        /// </summary>
        public String TBID { get; set; }

        /// <summary>
        /// 服务商ID
        /// </summary>
        public String SID { get; set; }

        /// <summary>
        /// 服务商名称
        /// </summary>
        public String ServiceName { get; set; }

        /// <summary>
        /// 结算规则
        /// </summary>
        public String ruleType { get; set; }

        /// <summary>
        /// 签约费率
        /// </summary>
        public Decimal? SignRate { get; set; }

        /// <summary>
        /// 结算费率
        /// </summary>
        public Decimal? SettleRate { get; set; }

        /// <summary>
        /// 佣金
        /// </summary>
        public Decimal? Commission { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public String MID { get; set; }


        /// <summary>
        /// 代理商ID
        /// </summary>
        public String AID { get; set; }

        /// <summary>
        /// 代理商名称
        /// </summary>
        public String AgentName { get; set; }

        /// <summary>
        /// 结算状态
        /// </summary>
        public Int32? SettleStatus { get; set; }

        /// <summary>
        /// 支付日期
        /// </summary>
        public DateTime? PayDate { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public Decimal? TotalAmount { get; set; }

        /// <summary>
        /// 笔数
        /// </summary>
        public Int32? TotalNum { get; set; }

        /// <summary>
        /// 充值金额
        /// </summary>
        public Decimal? RechargeAmount { get; set; }

        /// <summary>
        /// 交易日期
        /// </summary>
        public DateTime? tradeDate { get; set; }

        /// <summary>
        /// 代理商级别
        /// </summary>
        public String AIDLevel { get; set; }

        /// <summary>
        /// 商务经理ID
        /// </summary>
        public String customerManagerId { get; set; }

        /// <summary>
        /// 商务经理
        /// </summary>
        public String customerManager { get; set; }

        /// <summary>
        /// 一级代理ID
        /// </summary>
        public String OneLevelAID { get; set; }

        /// <summary>
        /// 一级代理签约费率
        /// </summary>
        public Decimal? OneLevelSignRate { get; set; }

        /// <summary>
        /// 一级代理佣金
        /// </summary>
        public Decimal? OneLevelCommission { get; set; }

        /// <summary>
        /// 二级代理ID
        /// </summary>
        public String TwoLevelAID { get; set; }

        /// <summary>
        /// 二级代理签约费率
        /// </summary>
        public Decimal? TwoLevelSignRate { get; set; }

        /// <summary>
        /// 二级代理佣金
        /// </summary>
        public Decimal? TwoLevelCommission { get; set; }

        /// <summary>
        /// 三级代理ID
        /// </summary>
        public String ThreeLevelAID { get; set; }

        /// <summary>
        /// 三级代理签约费率
        /// </summary>
        public Decimal? ThreeLevelSignRate { get; set; }

        /// <summary>
        /// 三级代理佣金
        /// </summary>
        public Decimal? ThreeLevelCommission { get; set; }

        /// <summary>
        /// 交易年度
        /// </summary>
        public Int32? tradeYear { get; set; }

        /// <summary>
        /// 交易月份
        /// </summary>
        public Int32? tradeMonth { get; set; }

        /// <summary>
        /// 可结算年月
        /// </summary>
        public DateTime? CanSettleDate { get; set; }

        /// <summary>
        /// 结算周期
        /// </summary>
        public String SettlementInterval { get; set; }

        /// <summary>
        /// 结算文件地址
        /// </summary>
        public String SettlementFilePath { get; set; }

        /// <summary>
        /// 数据范围ID
        /// </summary>
        public String DataAreaId { get; set; }

    }
}